﻿using Abp.Domain.Repositories;
using Sw.Hospital.HealthExaminationSystem.Application.BaseModule.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.BasicDictionary.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.ClientInfoes.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.Common.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.Company.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.Department;
using Sw.Hospital.HealthExaminationSystem.Application.Department.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.InspectionTotal.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.ItemGroup.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.ItemInfo.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.ItemSuit.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.SummarizeAdvice.Dto;
using Sw.Hospital.HealthExaminationSystem.Application.Users.Dto;
using Sw.Hospital.HealthExaminationSystem.Core.Coding;
using Sw.Hospital.HealthExaminationSystem.EntityFramework.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Services.Description;

namespace Sw.Hospital.HealthExaminationSystem.Application
{
    public class AppGlobal
    {
        private readonly MyProjectDbContext _context;
        private static IDepartmentAppService _departService;
        /// <summary>
        /// 部门列表
        /// </summary>
        public static List<TbmDepartmentDto> TbmDepartments;
        /// <summary>
        /// 项目组合列表
        /// </summary>
        public static List<SimpleItemGroupDto> SimpleItemGroups;
        /// <summary>
        /// 基础字典列表
        /// </summary>
        public static List<BasicDictionaryDto> BasicDictionaries;
        /// <summary>
        /// 窗体模块缓存
        /// </summary>
        public static List<FormModuleDto> FormModules;
        /// <summary>
        /// 下拉框用户
        /// </summary>
        public static List<UserForComboDto> UserForCombos;
        /// <summary>
        /// 项目套餐列表
        /// </summary>
        public static List<SimpleItemSuitDto> SimpleItemSuits;
        /// <summary>
        /// 行政区划列表
        /// </summary>
        public static List<AdministrativeDivisionDto> AdministrativeDivisions;
        /// <summary>
        /// 单位预约列表（下拉框使用）
        /// </summary>
        public static List<ClientRegNameComDto> ClientRegNameComs;
        /// <summary>
        /// 项目列表
        /// </summary>
        public static List<ItemInfoSimpleDto> ItemInfoSimples;
        /// <summary>
        /// 建议字典列表
        /// </summary>
        public static List<SummarizeAdviceDto> SummarizeAdvices;
        /// <summary>
        /// 屏蔽诊断词
        /// </summary>
        public static List<TbmSumHideDto> TbmSumHides;
        /// <summary>
        /// 所有缓存单位信息
        /// </summary>
        public static List<ClientInfoCacheDto> ClientInfoCaches;

        /// <param name="context"></param>
        public AppGlobal(MyProjectDbContext context)
        {
            _context = context;
        }


        public static void Init()
        {
           
               //var tbmDepartments = (_context.TbmDepartments.AsQueryable().Where(t => t.IsActive != true && t.TenantId==2)).ToList();
               // var users = _context.TjlCustomers.AsQueryable().Where(t=>t.TenantId==2).ToList();

        }
    }
}

